#ifndef _ST7735_H_
#define _ST7735_H_
#include <stdio.h>

// #include "pretty_effect.h"
#define ROW_PIXEL 80
#define COL_PIXEL 160


#define RED  	0xf800
#define GREEN	0x07e0
#define BLUE 	0x001f
#define WHITE	0xffff
#define BLACK	0x0000
#define YELLOW  0xFFE0
#define GRAY0   0xEF7D   	//灰色0 3165 00110 001011 00101
#define GRAY1   0x8410      	//灰色1      00000 000000 00000
#define GRAY2   0x4208      	//灰色2  111111111101111

void lcd_init();

void lcd_set_region( uint8_t  x_s,uint8_t y_s,uint8_t x_e,uint8_t y_e);

void lcd_clear(uint16_t color);

void lcd_draw_point(uint8_t x ,uint8_t y,uint16_t color);
void lcd_write_data16bit(uint16_t data);
void lcd_write_data(const uint8_t *data, int len);
#endif